﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminPages/AdminPanel.Master" AutoEventWireup="true" CodeBehind="ManageComments.aspx.cs" Inherits="MasterPageGroupF3.AdminPages.WebForm10" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="content1">
    <div class="frame">
        <div class="head">
        </div>
        <div class="content-catalog">
            <div id="name-comment">
                Comment Manager
            </div>
            <div id="function">
                <ul>
                     <li><asp:ImageButton ID="Add" runat="server" ImageUrl="../images/Add.png" 
                             ToolTip="Add" ImageAlign="Middle" onclick="Add_Click"  /></li>
                     <li><asp:ImageButton ID="Edit" runat="server" ImageUrl="../images/edit.png" ToolTip="Edit" ImageAlign="Middle" OnClick="Edit_Click"/></li>
                     <li><asp:ImageButton ID="Delete" runat="server" ImageUrl="../images/delete.png" ToolTip="Delete" ImageAlign="Middle" OnClick="Delete_Click"/></li>
                     <li><asp:ImageButton ID="Help" runat="server" ImageUrl="../images/help.png" ToolTip="Help" ImageAlign="Middle" OnClick="Help_Click"/></li>       
                </ul>
                
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="tail">
        </div>
    </div>
    <div class="frame">
        <div class="head">
        </div>
        <div class="provider">
           
                <div id="search">
                    <asp:Label ID="Label1" runat="server" Text="Filter"></asp:Label>
                    <asp:TextBox runat="server" Width="150" ID="txtsearch" ></asp:TextBox>
                    <asp:Button runat="server"  ID="btsearch" Text="Go" OnClick="Go_Click"/>                    
                    <asp:Button runat="server" ID="btreset" Text="Reset" onclick="btreset_Click" />
                </div>
                <div id="listprovider">
                    
                    
                    <asp:GridView ID="GridComment"  runat="server"  
                        AllowPaging="True" PageSize="4" AutoGenerateColumns = "False" 
                        CellPadding  = "4" ForeColor    = "#333333" GridLines="None" OnPageIndexChanging="GridProvider_PageIndexChanging" OnSorting="GridProvider_Sorting">
                        <Columns>
                            <asp:TemplateField HeaderText="Chọn" ItemStyle-Width="40">
                                <ItemTemplate>
                                   <asp:CheckBox ID="chk" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Mã" DataField="IDCOMMENT" ItemStyle-Width="20">
                                  
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Người đăng" DataField="USERNAME" ItemStyle-Width="90">
                                
                            </asp:BoundField>
                            <%--<asp:BoundField HeaderText="Sản phẩm" DataField=<%#Eval("PRODUCT.SLOGAN")%> ItemStyle-Width="70">
                                  
                            </asp:BoundField>--%>
                             <asp:TemplateField HeaderText="Product" ItemStyle-Width="300">
                                    <ItemTemplate>
                                        <%#Eval("PRODUCT.SLOGAN").ToString().Substring(0, 30).Insert(30, "...")%>
                                    </ItemTemplate>
                                </asp:TemplateField> 
                            <asp:TemplateField HeaderText="Nội dung" ItemStyle-Width="300">
                                    <ItemTemplate>
                                        <%# (Eval("CONTENT").ToString().Length > 70)?Eval("CONTENT").ToString().Substring(0, 70).Insert(70,"..."):Eval("CONTENT").ToString()%>
                                    </ItemTemplate>
                                </asp:TemplateField> 
                            <asp:BoundField HeaderText="Thời gian" DataField="TIME" ItemStyle-Width="160" 
                                ItemStyle-BorderColor="#669999" >
                                    <ItemStyle BorderColor="#669999" Width="100px"></ItemStyle>
                            </asp:BoundField>
                        </Columns>
                        <HeaderStyle         BackColor="#938fc0" ForeColor="#FFFFFF" Font-Bold="True" />
                        <RowStyle            BackColor="#dfeadb" />
                        <AlternatingRowStyle BackColor="#FFFFFF" />
                        <PagerStyle          BackColor="WhiteSmoke" ForeColor="#000" HorizontalAlign="Center" />
                        
                        

                     </asp:GridView>
                     
                </div>  
                           
        </div>
        <div class="tail">
        </div>
    </div>
    </div>
</asp:Content>
